package com.ruoyi.order.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.order.mapper.MallOrderSettingMapper;
import com.ruoyi.order.domain.MallOrderSetting;
import com.ruoyi.order.service.IMallOrderSettingService;

/**
 * 订单设置Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-11-28
 */
@Service
public class MallOrderSettingServiceImpl implements IMallOrderSettingService 
{
    @Autowired
    private MallOrderSettingMapper mallOrderSettingMapper;

    /**
     * 查询订单设置
     * 
     * @param id 订单设置主键
     * @return 订单设置
     */
    @Override
    public MallOrderSetting selectMallOrderSettingById(Long id)
    {
        return mallOrderSettingMapper.selectMallOrderSettingById(id);
    }

    /**
     * 查询订单设置列表
     * 
     * @param mallOrderSetting 订单设置
     * @return 订单设置
     */
    @Override
    public List<MallOrderSetting> selectMallOrderSettingList(MallOrderSetting mallOrderSetting)
    {
        return mallOrderSettingMapper.selectMallOrderSettingList(mallOrderSetting);
    }

    /**
     * 新增订单设置
     * 
     * @param mallOrderSetting 订单设置
     * @return 结果
     */
    @Override
    public int insertMallOrderSetting(MallOrderSetting mallOrderSetting)
    {
        return mallOrderSettingMapper.insertMallOrderSetting(mallOrderSetting);
    }

    /**
     * 修改订单设置
     * 
     * @param mallOrderSetting 订单设置
     * @return 结果
     */
    @Override
    public int updateMallOrderSetting(MallOrderSetting mallOrderSetting)
    {
        return mallOrderSettingMapper.updateMallOrderSetting(mallOrderSetting);
    }

    /**
     * 批量删除订单设置
     * 
     * @param ids 需要删除的订单设置主键
     * @return 结果
     */
    @Override
    public int deleteMallOrderSettingByIds(Long[] ids)
    {
        return mallOrderSettingMapper.deleteMallOrderSettingByIds(ids);
    }

    /**
     * 删除订单设置信息
     * 
     * @param id 订单设置主键
     * @return 结果
     */
    @Override
    public int deleteMallOrderSettingById(Long id)
    {
        return mallOrderSettingMapper.deleteMallOrderSettingById(id);
    }
}
